﻿using Microsoft.Practices.EnterpriseLibrary.Caching;

namespace WpfTwitterClient.Infrastructure.Services
{
    public class CacheService : ICacheService
    {
        private ICacheManager fileCache;

        public CacheService()
        {
            fileCache = CacheFactory.GetCacheManager();
        }

        public void Add(string key, object data)
        {
            fileCache.Add(key, data);
        }

        public object Get(string key)
        {
            return fileCache.GetData(key);
        }
    }
}
